package org.fnzn.biz;


import org.fnzn.bean.Element;
import org.fnzn.dao.ElementMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ElementBiz extends BaseBiz<ElementMapper,Element> {
	@Override
    public Element selectById(Object id) {
		Integer key=Integer.parseInt(id.toString());
        return mapper.selectByPrimaryKey(key);
    }
    public List<Element> getAuthorityElementByUserId(String userId){
       return mapper.selectAuthorityElementByUserId(userId);
    }
    public List<Element> getAuthorityElementByUserId(String userId,String menuId){
        return mapper.selectAuthorityMenuElementByUserId(userId,menuId);
    }
}
